package com.design.装饰器模式;

/**
 * @author: sun.hongliang
 * @create: 2019/08/15 12:15
 */
public class RedShapeDecorator extends ShapeDecorator {

    public RedShapeDecorator(Shap decorator) {
        super(decorator);
        try{

        }catch (Exception e){
            e.printStackTrace();
        }

    }

    @Override
    public void draw() {
        setRedBorder(decorator);
        super.draw();
    }

    private void setRedBorder(Shap decoratedShape) {
        System.out.println("Border Color: Red");
    }

}
